//
//  ReadingFirstPageFooterView.m
//  SunXi
//
//  Created by dllo on 15/11/30.
//  Copyright © 2015年 大远. All rights reserved.
//

#import "ReadingFirstPageFooterView.h"

@implementation ReadingFirstPageFooterView

- (instancetype)initWithFrame:(CGRect)frame{
    
    self = [super initWithFrame:frame];
    if (self) {
        [self create];
    }
    return self;
}


- (void)create {
    
    self.button = [UIButton buttonWithType:UIButtonTypeSystem];
    self.button.frame = CGRectMake(0, 0, WH, HT);
    [self addSubview:self.button];
    [self.button setTitle:@"" forState:UIControlStateNormal];
    [self.button setBackgroundImage:[UIImage imageNamed:@"Read.jpg"] forState:UIControlStateNormal];
    [self.button addTarget:self action:@selector(click:) forControlEvents:UIControlEventTouchUpInside];
    
    self.label = [[UILabel alloc] initWithFrame:CGRectMake(0, HT / 100 * 75, WH / 100 * 27, HT / 100 * 20)];
    self.label.textColor = [UIColor whiteColor];
//    self.label.layer.borderWidth = 2;
    self.label.font = [UIFont systemFontOfSize:18];
    [self addSubview:self.label];
    
    self.labelEnglish = [[UILabel alloc] initWithFrame:CGRectMake(WH / 100 * 27, HT / 100 * 75, WH / 2, HT / 100 * 20)];
    [self addSubview:self.labelEnglish];
    self.labelEnglish.textColor = [UIColor whiteColor];
    self.labelEnglish.font = [UIFont systemFontOfSize:15];
//    self.labelEnglish.layer.borderWidth = 1;
}


-(void)click:(UIButton *)button{
    
    ReadingFooterViewController *VC = [[ReadingFooterViewController alloc] init];
    [self.VC.navigationController pushViewController:VC animated:YES];
   
}


@end
